package nowcoder.huawei;

import java.io.FileNotFoundException;
import java.io.FileReader;
import java.util.Scanner;

/**
 * @author wuguojian
 * @description
 * @date 2023/4/12 下午9:46
 * https://www.nowcoder.com/practice/48b3cb4e3c694d9da5526e6255bb73c3
 **/
public class HJ13 {
    public static void main(String[] args) throws FileNotFoundException {
        Scanner in = new Scanner(new FileReader("input/nowcoder_huawei/HJ13.txt"));
//        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            String s = in.nextLine();
            String[] s1 = s.split(" ");
            for (int i = s1.length - 1; i >= 0; i--) {
                System.out.print(s1[i]);
                if (i > 0) {
                    System.out.print(" ");
                }
            }
            System.out.println();
        }
    }
}
